'use strict';
/**
 * access model
 */

 module.exports = app => {
    const { STRING, INTEGER, TINYINT } = app.Sequelize;
    const Access = app.model.define('access',{
      id: {type: INTEGER,primaryKey: true,autoIncrement:true},
      title: {type: STRING},
      key: {type:STRING},
      path: {type:STRING},
      icon: {type:STRING},
      name: {type:STRING},
      component: {type:STRING},
      status: {type:TINYINT},
      created_person: {type:STRING},
      updated_person: {type:STRING}
    });

    return Access;

 }
